import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/pages/Layout'
import DoExercise from "@/pages/DoExercise"
import Index from '@/pages/Index'
import LearnCenter from "@/pages/Learncenter"
import LearnData from "@/pages/Learndata"


Vue.use(Router)

export default new Router({
  linkActiveClass:"active",
  routes: [
    {
      path: '/',
      name: 'Layout',
      component: Layout,
      redirect:"/index",
      children:[
        {
          path:"index",
          name:"index",
          component:Index
        },
        {
          path:"doexercise",
          name:"doexercise",
          component:DoExercise
        },
        {
          path:"learncenter",
          name:"LearnCenter",
          component:LearnCenter
        },
        {
          path:"learndata",
          name:"LearnData",
          component:LearnData
        }
      ]
    }
  ]
})
